package com.xizimall.sso.controller;

import org.aspectj.apache.bcel.generic.ReturnaddressType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 登录注册页面Controller
 * <p>Title: PageController</p>
 * <p>Description: </p>
 * <p>华南理工大学研究生</p> 
 * @author	李隆熹
 * @date	2018年4月27日下午12:05:15
 * @version 1.0
 */
@Controller
@RequestMapping("/page")
public class PageController {
   @RequestMapping("/register")
   public String showRegister(){
	   return "register";
   }
   @RequestMapping("/login")
   public String showLogin(String redirect,Model model){
	   model.addAttribute("redirect", redirect);
	   return "login";
   }
  
}
